//
//  Venue.h
//  SHPE Conference Companion
//
//  Created by Richard Kirk on 3/25/11.
//  Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//
/*
 
 API example for Venue class : 
 
<?xml version="1.0" encoding="UTF-8"?>
<conference-venue xmlns="http://openshpe.shpe.org/conference" xmlns:xlink="http://www.w3.org/1999/xlink" id="2" name="Holiday Inn Orlando - UCF" xlink:thumbnail="http://openshpe.staging.shpe.org/conference/v1/venue/2/thumbnail/">
     <venue-type id="3" name="Hotel"/>
     <description>Located within walking distance of UCF, the Holiday-Inn hotel offers guests convenient access to UCF, businesses and attractions around Orlando.  This is the secondary conference hotel where the professionals and graduate attendees will be staying.</description>
     <website>http://www.holidayinn.com/hotels/us/en/orlando/mcouc/hoteldetail</website>
     <phone>1-407-275-9000</phone>
     <location>
          <address>12125 High Tech Avenue</address>
          <city>Orlando</city>
          <province>FL</province>
          <country>US</country>
          <postalCode>32817</postalCode>
          <coordinate lat="28.599936" lon="-81.2112"/>
     </location>
</conference-venue>
*/




#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>

@class Conference, Location, Session;

@interface Venue : NSManagedObject <NSXMLParserDelegate> {
@private
}
@property (nonatomic, retain) NSString * name;
@property (nonatomic, retain) NSString * phone;
@property (nonatomic, retain) NSString * website;
@property (nonatomic, retain) NSString * venueName;
@property (nonatomic, retain) NSString * desc;
@property (nonatomic, retain) NSNumber * venueType;
@property (nonatomic, retain) NSNumber * id;
@property (nonatomic, retain) NSString * thumbnailURL;
@property (nonatomic, retain) NSData * thumbnailData;
@property (nonatomic, retain) Conference * conference;
@property (nonatomic, retain) Location * location;
@property (nonatomic, retain) NSSet* sessions;

@property (nonatomic, retain) id parent;
@property (nonatomic, retain) NSXMLParser *xmlParser;
@property (nonatomic, retain) NSMutableString *xmlStringBuilder;


-(id)initWithParser:(NSXMLParser *)parser attributeDict:(NSDictionary *)attributes parent:(id)parentObject;
-(id)initWithVenueId:(int) venueId;




@end
